package com.wj.rpsm.user.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;


/**
 * @author WeiJin
 * @version 1.0
 */
@Data
@NoArgsConstructor
@ApiModel("账户信息")
public class Amount {
    @ApiModelProperty("账单主键，唯一标识")
    private Integer amount_id;
    @ApiModelProperty("账单相关业主")
    private Integer amount_roomid;
    @ApiModelProperty("账单类型，即费用类型的id主键")
    private Byte amount_type;
    @ApiModelProperty("生成账单的时间")
    private LocalDate amount_date;
    @ApiModelProperty(value = "需支付的费用，放大100倍，避免浮点数的误差",dataType = "Integer")
    private Integer amount;
    @ApiModelProperty("账单是否被支付：1.已支付 2.未支付")
    private Integer isPaied;

    public Amount(Integer amount_id, Integer amount_roomid, Byte amount_type, LocalDate amount_date, Integer amount, Integer isPaied) {
        this.amount_id = amount_id;
        this.amount_roomid = amount_roomid;
        this.amount_type = amount_type;
        this.amount_date = amount_date;
        this.amount = amount;
        this.isPaied = isPaied;
    }
}
